package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 临床医案对象 TRAINING_MEDICAL_RECORD
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingMedicalRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String medicalRecordId;

    //@ApiModelProperty(name = "patient_name")
    private String patientName;

    private String patientBirthDay;

    private String patientAge;

    private Long patientGender;

    private Long registerType;

    private String paroxysmSolarTerms;

    private String chiefComplaint;

    private String presentHistory;

    private String chineseDiagnosis;

    private String westernDiagnosis;

    private String prescriptionDrug;

    private String feelingsExperiences;

    private Long medicalRecordStatus;

    private String attachmentPath;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    private Long submitBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    private Long auditBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    private Long modifyBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 培训基地ID
     */
    @Excel(name = "培训基地ID")
    private String baseId;

    /**
     * 培训基地名称
     */
    @Excel(name = "培训基地名称")
    private String baseName;

    /**
     * 培训科室ID
     */
    @Excel(name = "培训科室ID")
    private String deptId;

    /**
     * 培训科室名称
     */
    @Excel(name = "培训科室名称")
    private String deptName;

    /**
     * 培训学员ID
     */
    @Excel(name = "培训学员ID")
    private String cadetId;

    /**
     * 培训学员名称
     */
    @Excel(name = "培训学员名称")
    private String cadetName;

    /**
     * 培训导师ID
     */
    @Excel(name = "培训导师ID")
    private String mentorId;

    /**
     * 培训导师名称
     */
    @Excel(name = "培训导师名称")
    private String mentorName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("medicalRecordId", getMedicalRecordId())
                .append("patientName", getPatientName())
                .append("patientBirthDay", getPatientBirthDay())
                .append("patientAge", getPatientAge())
                .append("patientGender", getPatientGender())
                .append("registerType", getRegisterType())
                .append("paroxysmSolarTerms", getParoxysmSolarTerms())
                .append("chiefComplaint", getChiefComplaint())
                .append("presentHistory", getPresentHistory())
                .append("chineseDiagnosis", getChineseDiagnosis())
                .append("westernDiagnosis", getWesternDiagnosis())
                .append("prescriptionDrug", getPrescriptionDrug())
                .append("feelingsExperiences", getFeelingsExperiences())
                .append("medicalRecordStatus", getMedicalRecordStatus())
                .append("attachmentPath", getAttachmentPath())
                .append("isDelete", getIsDelete())
                .append("submitBy", getSubmitBy())
                .append("submitTime", getSubmitTime())
                .append("auditBy", getAuditBy())
                .append("auditTime", getAuditTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .toString();
    }
}
